//
//  ErrorMessage.m
//  BenefitEveryday
//
//  Created by chunlen on 15/9/23.
//  Copyright © 2015年 chunlen. All rights reserved.
//

#import "ErrorMessage.h"
#import "MBProgressHUD.h"
//#import "TostView.h"
//#import "ImageTostView.h"
//#import "ImageTostActionView.h"
@implementation ErrorMessage

+ (void)showErrorMessage:(NSString *)message inView:(UIView *)view{
    MBProgressHUD *hub = [MBProgressHUD showHUDAddedTo:view animated:YES];
    hub.mode = MBProgressHUDModeText;
    hub.removeFromSuperViewOnHide = YES;
    hub.detailsLabelText = message;
    hub.detailsLabelFont = [UIFont systemFontOfSize:15];
    [hub hide:YES afterDelay:1.5];
}
//+ (void)showWithMessage:(NSString *)message andImageName:(NSString *)imageName inView:(UIView *)view isImageRemind:(BOOL)isImage
//{
//    if (isImage) {
//        ImageTostView *tostView = [[ImageTostView alloc] init];
//        [tostView showWithMessage:message andImageName:imageName inView:view];
//    }else{
//        TostView *tostView = [[TostView alloc] init];
//        [tostView showWithMessage:message andImageName:imageName inView:view];
//    }
//    
//}
//+ (void)showWithMessage:(NSString *)message andTopImageName:(NSString *)topImageName bottomImageName:(NSString *)bottomImageName moreAction:(BOOL)hasAction inView:(UIView *)view{
//    ImageTostActionView *tostView = [[ImageTostActionView alloc] init];
//    [tostView showWithMessage:message andTopImageName:topImageName bottomImageName:bottomImageName moreAction:hasAction inView:view];
//}
@end
